package com.github.od.rpc;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.github.od.vo.ObjectRestResponse;

/**
* 客户端访问网关远程接口
* 
* @author xieweikun
* @version 2017年11月19日 下午9:15:24
*/
@FeignClient("od-auth")
public interface ClientAuthRpc {

	/**
	 * 获取允许的服务列表
	 * @param serviceId
	 * @param secret
	 * @return
	 */
	@RequestMapping(value="/client/allowedClient",method=RequestMethod.POST)
	public ObjectRestResponse<List<String>> getAllowedClient(@RequestParam("serviceId")String serviceId,@RequestParam("secret")String secret);
	
}
